import re
# it = re.findall(r"\d+","VARCHAR(50)")
# # for match in it:
# #     print (match.group() )
# print(it[0])
pre='ppExpandCollapseUpdateReq'
str=re.findall(r'.set(.*);\n', 'ppExpandCollapse.setFieldId();\n')
print(str)
str1='('+pre+'.get'+str[0]+')'
print("str1:",str1)
str2=re.sub(r'\(\)',str1,'ppExpandCollapse.setFieldId();\n')
print("str2:",str2)